 class OuterClass {
    //定义外部类
    private String name;
    private int serno;


    //定义内部类
   public class InnerClass{

       public InnerClass(){
           name="InnerClass";
           serno=1;
       }

       public void showInfo(){
           System.out.println("name="+name+" ,serno="+serno);
       }
   }
     public OuterClass(){
       name="outerCalss";
       serno=0;
     }
     public void display(){
         System.out.println("name="+name+";serno"+serno);
     }
}
